import random

class Labirint:
    def __init__(self):
        self.len_n1 = None
        self.len_n2 = None
        self.array_n2 = None
        self.dict_str = {0:"+", 1:"A"}

    def setting(self) -> None:
        pass

    def check_data(self) -> bool:
        if self.len_n1 and self.len_n2 and self.array_n2:
            return False
        else:
            return True

    def init_array(self):
        for i in range(0, self.len_n1):
            for j in range(0, self.len_n2):
                self.generate(i,j)

    def print_array(self) -> None:
        lab: str = ""
        for i in range(0, self.len_n1):
            for j in range(0, self.len_n2):
                lab = f"{self.array_n2[i][j]}"
            lab = f"{lab}\n"
        self.message(lab)     

    def generate(self, num: int, num1: str) -> str:
        if num == 0:
            return "-"
        elif (num1 == 0 or num == self.len_n2):
            return "|"
        elif (num  == self.len_n1){
            return "_"
        }
        else:
            id: int = random.randint(0, len(self.dict_str))
            return self.dict_str[id]
    
    def message(self, mess: str) -> None:
        print(mess)